﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="WorkTimeOvertime.aspx.cs" Inherits="WorkTime_WorkTimeOvertime" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        allowadd="True" allowdelete="True" allowprint="True" allowupdate="True" alwaysclose="False"
        autoapplyforinsert="False" autorecordlock="False" autorecordlockmode="NoneReload"
        cachedataset="True" commandname="" commandtext="" datamember="WorkTime_Overtime"
        eof="True" keyvalues="" lastindex="-1" marker="'" masterdatasource="" packetrecords="100"
        quoteprefix="[" quotesuffix="]" remotename="" selectcommand="" tablename="">
    </infolight:webdatasource>
    <infolight:webdatasource id="WEmp" runat="server" selectalias="Usasdb" selectcommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdefault id="WebDefault1" runat="server" datamember="WorkTime_Overtime"
        datasourceid="Master">
        <fields>
                <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="OvertimeId" />
                <InfoLight:DefaultFieldItem DefaultValue="GetEmployeeId()" FieldName="EmployeeId" />
                <InfoLight:DefaultFieldItem DefaultValue="GetOvertimeDate()" FieldName="OvertimeDate" />
            </fields>
    </infolight:webdefault>
    <infolight:webvalidate id="WebValidate1" runat="server" altrowcss="" datamember="WorkTime_Overtime"
        datasourceid="Master" forecolor="Red" rowcss="" validatestyle="ShowDialog">
        <fields>
<InfoLight:ValidateFieldItem FieldName="OvertimeId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="EmployeeId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="OvertimeDate" WarningMsg="终止日期必须大于起始日期\r\n或是\r\n请假时间不在工作时间之内" Validate="ValidateDateFrom()"></InfoLight:ValidateFieldItem>
</fields>
    </infolight:webvalidate>
    <FLTools:FLWebNavigator ID="FLWebNavigator1" runat="server" BindingObject="WebFormView1"
        ShowDataStyle="FormViewStyle" StatusStrip="WebStatusStrip1" CtlHeight="25" Width="100%"
        AutoSubmit="True" CssClass="NavigatorBar">
        <NavControls>
            <infolight:controlitem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Add3_C.gif" imageurl="../Image/UIPics/Add_C.gif"
                mouseoverimageurl="../Image/UIPics/Add2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Update" controltext="update" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Edit3_C.gif" imageurl="../Image/UIPics/Edit_C.gif"
                mouseoverimageurl="../Image/UIPics/Edit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Delete" controltext="delete" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Delete3_C.gif" imageurl="../Image/UIPics/Delete_C.gif"
                mouseoverimageurl="../Image/UIPics/Delete2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Apply" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Apply3_C.gif" imageurl="../Image/UIPics/Apply_C.gif"
                mouseoverimageurl="../Image/UIPics/Apply2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Abort" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Abort3_C.gif" imageurl="../Image/UIPics/Abort_C.gif"
                mouseoverimageurl="../Image/UIPics/Abort2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Query" controltext="query" controltype="Image"
                controlvisible="True" disenableimageurl="../image/uipics/Query3_C.gif" imageurl="../image/uipics/Query_C.gif"
                mouseoverimageurl="../image/uipics/Query2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Submit" controltext="submit" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Submit_C.gif"
                mouseoverimageurl="../image/uipics/Submit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Approve" controltext="approve" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../Image/UIPics/Approve_C.gif"
                mouseoverimageurl="../Image/UIPics/Approve2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Return" controltext="return" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Return_C.gif"
                mouseoverimageurl="../image/uipics/Return2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Reject" controltext="reject" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Reject_C.gif"
                mouseoverimageurl="../image/uipics/Reject2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Notify" controltext="notify" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Notify_C.gif"
                mouseoverimageurl="../image/uipics/Notify2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="FlowDelete" controltext="flowdelete" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/FlowDelete_C.gif"
                mouseoverimageurl="../image/uipics/FlowDelete2_C.gif" size="70">
            </infolight:controlitem>
            <infolight:controlitem controlname="Plus" controltext="plus" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Plus_C.gif"
                mouseoverimageurl="../image/uipics/Plus2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Pause" controltext="pause" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Pause_C.gif"
                mouseoverimageurl="../image/uipics/Pause2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Comment" controltext="comment" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Comment_C.gif"
                mouseoverimageurl="../image/uipics/Comment2_C.gif" size="48">
            </infolight:controlitem>
        </NavControls>
        <FLStates>
            <FLTools:FLWebNavigatorStateItem StateText="Approve" VisibleControls="Approve;Return;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Continue" VisibleControls="Submit;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Inquery" VisibleControls="Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Notify" VisibleControls="Notify;FlowDelete;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Return" VisibleControls="Submit;Reject;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="Submit" VisibleControls="Submit;Notify;Pause" />
            <FLTools:FLWebNavigatorStateItem StateText="None" VisibleControls="" />
            <FLTools:FLWebNavigatorStateItem StateText="Plus" VisibleControls="Approve;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Lock" VisibleControls="Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="FSubmit" VisibleControls="Submit;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="RSubmit" VisibleControls="Submit;Return;Notify" />
        </FLStates>
        <NavStates>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Initial">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Browsed">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Inserting">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Editing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Applying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                statetext="Changing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Querying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Printing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Normal">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Add" statetext="Insert">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Update" statetext="Modify">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query" statetext="Inquery">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query;Update" statetext="Prepare">
            </infolight:webnavigatorstateitem>
        </NavStates>
    </FLTools:FLWebNavigator>
    <infolight:webformview id="WebFormView1" runat="server" datasourceid="Master" cellpadding="5"
        layoutcolnum="2" forecolor="#333333" height="87px" width="100%" backcolor="Silver"
        bordercolor="White" borderstyle="Groove" borderwidth="2px" oniteminserting="WebFormView1_ItemInserting"
        ondatabound="WebFormView1_DataBound" onitemupdating="WebFormView1_ItemUpdating">
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True" />
        <editrowstyle backcolor="LightCyan" forecolor="Blue" />
        <rowstyle backcolor="#EFF3FB" forecolor="Navy" />
        <pagerstyle forecolor="White" horizontalalign="Center" backcolor="PowderBlue" />
        <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <insertrowstyle backcolor="LightCyan" forecolor="Blue" />
        <edititemtemplate>
                <table class="container_table" style="width: 700px">
                    <tr>
                        <td style="width: 78px">
                        <asp:Label ID="CaptionOvertimeId" runat="server" Text="加班单编号:" ForeColor="Red" Width="80px"></asp:Label></td>
                        <td style="width: 206px">
                        <asp:TextBox ID="OvertimeIdTextBox" runat="server" ReadOnly="True" Text='<%# Bind("OvertimeId") %>'
                            Width="140px"></asp:TextBox></td>
                        <td style="width: 55px">
                        </td>
                        <td style="width: 291px">
                            </td>
                    </tr>
                    <tr>
                        <td style="width: 78px; height: 26px">
                        <asp:Label ID="CaptionEmployeeId" runat="server" Text="员工编号:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 206px; height: 26px">
                        <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="140px" 
                                OpenRefHeight="550">
                            <Columns>
                                <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                            </Columns>
                        </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 55px; height: 26px">            </td>
                        <td style="width: 291px; height: 26px">
                       </td>
                    </tr>
                   <tr>
                        <td style="width: 78px">
                        <asp:Label ID="CaptionDateFrom" runat="server" Text="加班日期:"></asp:Label></td>
                        <td style="width: 206px">
                                      
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d',isShowClear:false,readOnly:true})" 
                                Text='<%# Bind("OvertimeDate", "{0:d}") %>' CssClass="Wdate" 
                                Width="140px"/></asp:TextBox>


                       </td>
                        <td style="width: 55px">
                         <asp:Label ID="Label4" runat="server" Text="加班时数:" Width="58px"></asp:Label>
                        </td>
                        <td style="width: 291px">
                        <cc1:ZLTextBox ID="OvHours" runat="server" FloatLength="2" InputType="number"
                            IsDisplayTime="True" Language="Chinese" MaxLength="4" onblurCssName="" onfocusCssName=""
                            ShowMessage="" Text='<%# Bind("OvHours") %>' textValue="" Width="88px" ondrop="return regInput(this,/^[0-9]*$/,event.dataTransfer.getData('Text'))" onfocus="this.style.imeMode='disabled';" onkeypress="return regInput(this,&#9;/^[0-9]*$/,String.fromCharCode(event.keyCode))" onpaste="return regInput(this,/^[0-9]*$/,window.clipboardData.getData('Text'))" ReadOnly="True"></cc1:ZLTextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 78px">
                            <asp:Label ID="CaptionOutTime" runat="server" Text="起始时间:"></asp:Label></td>
                        <td style="width: 206px">
                            <InfoLight:WebDropDownList ID="StartHour" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("StartHour") %>'
                                Width="40px">
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                                
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="StartMinute" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("StartMinute") %>' Width="40px">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                        <td style="width: 34px">
                            <asp:Label ID="CaptionBackTime" runat="server" Text="终止时间:" Width="61px"></asp:Label></td>
                        <td style="width: 317px">
                            <InfoLight:WebDropDownList ID="EndHour" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("EndHour") %>'
                                Width="40px">
                               <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                                
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="EndMinute" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("EndMinute") %>' Width="40px">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                    </tr>
                    <tr>
                        <td style="width: 78px">
                        <asp:Label ID="CaptionPlanWork" runat="server" Text="计划完成的工作或项目:" Width="132px"></asp:Label></td>
                        <td colspan="3">
                        <asp:TextBox ID="PlanWorkTextBox" runat="server" Text='<%# Bind("PlanWork") %>' Width="440px" MaxLength="45"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 78px">
                        <asp:Label ID="CaptionFactResult" runat="server" Text="备注/实际完成的结果:" Width="120px"></asp:Label></td>
                        <td colspan="3">
                        <asp:TextBox ID="FactResultTextBox" runat="server" Text='<%# Bind("FactResult") %>'
                            Width="440px" MaxLength="45"></asp:TextBox></td>
                    </tr>
                </table>
            </edititemtemplate>
        <insertitemtemplate>
                <table class="container_table" style="width: 700px">
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionOvertimeId" runat="server" Text="加班单编号:" ForeColor="Red" Width="73px"></asp:Label></td>
                        <td style="width: 53px">
                            <asp:TextBox ID="OvertimeIdTextBox" runat="server" ReadOnly="True" Text='<%# Bind("OvertimeId") %>'
                                Width="140px"></asp:TextBox></td>
                        <td style="width: 55px">
                        </td>
                        <td style="width: 291px">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 54px; height: 26px">
                            <asp:Label ID="CaptionEmployeeId" runat="server" Text="员工编号:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 53px; height: 26px">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="140px" 
                                OpenRefHeight="550">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 55px; height: 26px">
                            </td>
                        <td style="width: 291px; height: 26px">
                            </td>
                    </tr>
                    <tr>
                        <td style="width: 54px">
                        <asp:Label ID="CaptionDateFrom" runat="server" Text="加班日期:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 53px">
                        
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d',isShowClear:false,readOnly:true})" 
                                Text='<%# Bind("OvertimeDate", "{0:d}") %>' CssClass="Wdate" 
                                Width="140px"/></asp:TextBox>

</td>
                        <td style="width: 55px">
                         <asp:Label ID="Label4" runat="server" Text="加班时数:" Width="58px"></asp:Label>
                        </td>
                        <td style="width: 291px">
                        <cc1:ZLTextBox ID="OvHours" runat="server" FloatLength="2" InputType="number"
                            IsDisplayTime="True" Language="Chinese" MaxLength="4" onblurCssName="" onfocusCssName=""
                            ShowMessage="" Text='<%# Bind("OvHours") %>' textValue="" Width="140px" 
                                ondrop="return regInput(this,/^[0-9]*$/,event.dataTransfer.getData('Text'))" 
                                onfocus="this.style.imeMode='disabled';" 
                                onkeypress="return regInput(this,&#9;/^[0-9]*$/,String.fromCharCode(event.keyCode))" 
                                onpaste="return regInput(this,/^[0-9]*$/,window.clipboardData.getData('Text'))" 
                                ReadOnly="True"></cc1:ZLTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 56px">
                            <asp:Label ID="CaptionOutTime" runat="server" Text="起始时间:"></asp:Label></td>
                        <td style="width: 192px">
                            <InfoLight:WebDropDownList ID="StartHour" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("StartHour") %>'
                                Width="40px">
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                                
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="StartMinute" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("StartMinute") %>' Width="40px">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                        <td style="width: 34px">
                            <asp:Label ID="CaptionBackTime" runat="server" Text="终止时间:" Width="61px"></asp:Label></td>
                        <td style="width: 317px">
                            <InfoLight:WebDropDownList ID="EndHour" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("EndHour") %>'
                                Width="40px">
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                                
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="EndMinute" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("EndMinute") %>' Width="40px">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                    </tr>
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionPlanWork" runat="server" Text="计划完成的工作或项目:" Width="132px"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="PlanWorkTextBox" runat="server" Text='<%# Bind("PlanWork") %>' Width="452px" MaxLength="45"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionFactResult" runat="server" Text="备注/实际完成的结果:" Width="128px"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="FactResultTextBox" runat="server" Text='<%# Bind("FactResult") %>'
                                Width="452px" MaxLength="45"></asp:TextBox></td>
                    </tr>
                </table>
            </insertitemtemplate>
        <itemtemplate>
                <table class="container_table" style="width: 700px">
                    <tr>
                        <td style="width: 158px">
                        <asp:Label ID="CaptionOvertimeId" runat="server" Text="加班单编号:"></asp:Label></td>
                        <td style="width: 53px">
                        <asp:TextBox ID="OvertimeIdTextBox" runat="server" ReadOnly="True" Text='<%# Bind("OvertimeId") %>'
                            Width="120px"></asp:TextBox></td>
                        <td style="width: 55px">
                        </td>
                        <td style="width: 291px">
                            </td>
                    </tr>
                    <tr>
                        <td style="width: 158px; height: 26px">
                        <asp:Label ID="CaptionEmployeeId" runat="server" Text="员工编号:"></asp:Label></td>
                        <td style="width: 53px; height: 26px">
                        <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                        </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 55px; height: 26px">
                            <asp:Label ID="Label2" runat="server" Text="所在部门:"></asp:Label></td>
                        <td style="width: 291px; height: 26px">
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("DepartmentName") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 158px">
                        <asp:Label ID="CaptionDateFrom" runat="server" Text="加班日期:"></asp:Label></td>
                        <td style="width: 53px">
                        <cc1:ZLTextBox ID="ZLTextBox1" runat="server" FloatLength="2" InputType="date" IsDisplayTime="True"
                            Language="Chinese" onblurCssName="" onfocusCssName="" ReadOnly="True" ShowMessage=""
                            Text='<%# Bind("OvertimeDate","{0:d}") %>' textValue="" Enabled="False" Width="120px" onfocus="calendar()"></cc1:ZLTextBox></td>
                        <td style="width: 55px">
                         <asp:Label ID="Label4" runat="server" Text="加班时数:"></asp:Label>
                        </td>
                        <td style="width: 291px">
                        <asp:TextBox ID="OvHours" runat="server" ReadOnly="True" Text='<%# Bind("OvHours") %>'  Width="88px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 158px">
                            <asp:Label ID="CaptionOutTime" runat="server" Text="起始时间:"></asp:Label></td>
                        <td style="width: 192px">
                            <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("StartHour") %>'
                                Width="40px" Enabled="False" OnlyShowSelectText="False">
                               <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                                
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="WebDropDownList2" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("StartMinute") %>' Width="40px" Enabled="False" OnlyShowSelectText="False">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                        <td style="width: 34px">
                            <asp:Label ID="CaptionBackTime" runat="server" Text="终止时间:" Width="61px"></asp:Label></td>
                        <td style="width: 317px">
                            <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("EndHour") %>'
                                Width="40px" Enabled="False" OnlyShowSelectText="False">
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                                
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="WebDropDownList4" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("EndMinute") %>' Width="40px" Enabled="False" OnlyShowSelectText="False">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                    </tr>
                    <tr>
                        <td style="width: 158px">
                        <asp:Label ID="CaptionPlanWork" runat="server" Text="计划完成的工作或项目:"></asp:Label></td>
                        <td colspan="3">
                        <asp:TextBox ID="PlanWorkTextBox" runat="server" ReadOnly="True" Text='<%# Bind("PlanWork") %>'
                            Width="456px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 158px">
                        <asp:Label ID="CaptionFactResult" runat="server" Text="备注/实际完成的结果:"></asp:Label></td>
                        <td colspan="3">
                        <asp:TextBox ID="FactResultTextBox" runat="server" ReadOnly="True" Text='<%# Bind("FactResult") %>'
                            Width="456px"></asp:TextBox></td>
                    </tr>
                </table>
            </itemtemplate>
        <fields>
                <InfoLight:FormViewField ControlID="OvertimeIdTextBox" FieldName="OvertimeId" />
                <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmployeeId" />
                <InfoLight:FormViewField ControlID="ZLTextBox1" FieldName="OvertimeDate" />
            </fields>
    </infolight:webformview>
</asp:Content>
